package sceneGraph;

import javax.vecmath.*;

public class TextObject implements ISceneObject {

	private Point2f pos;
	private String text;
	private Color3f color;

	public TextObject(String text, Point2f pos, Color3f color) {
		this.text = text;
		this.pos = new Point2f(pos);
		this.color = new Color3f(color);
	}

	public Point2f getPosition() {
		return pos;
	}

	public Color3f getColor() {
		return color;
	}

	public String getText() {
		return text;
	}

	public void setText(String newText) {
		text = newText;
	}

	public void setPosition(Point2f pos) {
		this.pos = new Point2f(pos);
	}

	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

}
